{extend name="main/index" /}
{block name="main"}
<div class="main-content">
    <div class="breadcrumbs" id="breadcrumbs">
        <script type="text/javascript">
            try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
        </script>

        <ul class="breadcrumb">
            <li>
                <i class="icon-home home-icon"></i>
                <a href="#">Home</a>
            </li>

            <li>
                <a href="#">Tables</a>
            </li>
            <li class="active">材料入库列表</li>
        </ul><!-- .breadcrumb -->

        <div class="nav-search" id="nav-search">
            <form class="form-search">
                <span class="input-icon">
                    <input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
                    <i class="icon-search nav-search-icon"></i>
                </span>
            </form>
        </div><!-- #nav-search -->
    </div>

    <div class="page-content">
        <div class="row">
            <div class="col-xs-12">
                <div class="row">
                    <div class="col-xs-12">
                        <h3 class="header smaller lighter blue">项目材料入库</h3>
                        <div class="table-responsive">
                            <table id="sample-table-2" class="table table-striped table-bordered table-hover">
                                <thead>
                                    <tr>
                                            <th>ID</th>
                                            <th>材料名称</th>
                                            <th>用材分部</th>
                                            <th>实际单价</th>
                                            <th>入库数量</th>
                                            <th>入库总价</th>
                                            <th>库存</th>
                                            <th>更改状态</th>
                                            
                                    </tr>
                                </thead>
                                <tbody>
                                {volist name="list" id="v"}
                                    <tr>
                                            <td>{$v['id']}</td>
                                            <td>{$v['material_name']}</td>
                                            <td>{$v['timber_division']}</td>
                                            <td>{$v['actual_unit_price']}</td>
                                            <td>{$v['actual_in_number']}</td>
                                            <td>{$v['in_total_price']}</td>
                                            <td>{$v['in_stock']}</td>
                                        <td>

                                            <!--<span class="label label-lg label-yellow arrowed-in">Yellow</span>-->
                                            <!--<button class="btn btn-info">Info</button>-->
                                            <!--<button class="btn btn-xs btn-danger">Danger</button>-->
                                            <a href="{:url('admin/Material/warehouse',['id'=> $v['id']])}"><span class="label label-lg label-yellow arrowed-in">修改</span></a>
                                            <button data-id="{$v['id']}"  class="btn btn-xs btn-danger del-btn" id="btn" >删除</button>
                                            <a href="{:url('admin/Material/addwarehouse',['id'=> $v['id']])}"><span class="label label-lg label-pink arrowed-right">增加</span></a>

                                        </td>
                                    </tr>
                                {/volist}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div><!-- /.col -->
        </div><!-- /.row -->
    </div><!-- /.page-content -->
</div>
    {/block}

